package com.ruoyi.student.service.impl;

import java.util.List;

import com.ruoyi.student.domain.StuStudentMessage;
import com.ruoyi.student.mapper.StuStudentMessageMapper;
import com.ruoyi.student.service.IStuStudentMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 学生信息Service业务层处理
 * 
 * @author liuyuan
 * @date 2023-06-10
 */
@Service
public class StuStudentMessageServiceImpl implements IStuStudentMessageService
{
    @Autowired
    private StuStudentMessageMapper stuStudentMessageMapper;

    /**
     * 查询学生信息
     * 
     * @param sid 学生信息主键
     * @return 学生信息
     */
    @Override
    public StuStudentMessage selectStuStudentMessageBySid(Long sid)
    {
        return stuStudentMessageMapper.selectStuStudentMessageBySid(sid);
    }

    /**
     * 查询学生信息列表
     * 
     * @param stuStudentMessage 学生信息
     * @return 学生信息
     */
    @Override
    public List<StuStudentMessage> selectStuStudentMessageList(StuStudentMessage stuStudentMessage)
    {
        return stuStudentMessageMapper.selectStuStudentMessageList(stuStudentMessage);
    }

    /**
     * 新增学生信息
     * 
     * @param stuStudentMessage 学生信息
     * @return 结果
     */
    @Override
    public int insertStuStudentMessage(StuStudentMessage stuStudentMessage)
    {
        return stuStudentMessageMapper.insertStuStudentMessage(stuStudentMessage);
    }

    /**
     * 修改学生信息
     * 
     * @param stuStudentMessage 学生信息
     * @return 结果
     */
    @Override
    public int updateStuStudentMessage(StuStudentMessage stuStudentMessage)
    {
        return stuStudentMessageMapper.updateStuStudentMessage(stuStudentMessage);
    }

    /**
     * 批量删除学生信息
     * 
     * @param sids 需要删除的学生信息主键
     * @return 结果
     */
    @Override
    public int deleteStuStudentMessageBySids(Long[] sids)
    {
        return stuStudentMessageMapper.deleteStuStudentMessageBySids(sids);
    }

    /**
     * 删除学生信息信息
     * 
     * @param sid 学生信息主键
     * @return 结果
     */
    @Override
    public int deleteStuStudentMessageBySid(Long sid)
    {
        return stuStudentMessageMapper.deleteStuStudentMessageBySid(sid);
    }
}
